package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MoPassagewayCardsupport;

import java.util.*;
public class MoPassagewayCardsupportExample extends SgExample<MoPassagewayCardsupportExample.Criteria> {
    public static final Class<MoPassagewayCardsupport> beanClass = MoPassagewayCardsupport.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn bankId;
    public static EntityColumn cpId;
    public static EntityColumn passagewayId;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        bankId = listMap.get("bankId");
        cpId = listMap.get("cpId");
        passagewayId = listMap.get("passagewayId");
        }

    public MoPassagewayCardsupportExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MoPassagewayCardsupportExample.Criteria createCriteriaInternal() {
        return new MoPassagewayCardsupportExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdIsNull() {
            return isNull(bankId);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdIsNotNull() {
            return isNotNull(bankId);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdEqualTo(Long value) {
            return equalTo(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdNotEqualTo(Long value) {
            return notEqualTo(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdGreaterThan(Long value) {
            return greaterThan(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdLessThan(Long value) {
            return lessThan(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(bankId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdIn(List<Long> values) {
            return in(bankId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdNotIn(List<Long> values) {
            return notIn(bankId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdBetween(Long value1, Long value2) {
            return between(bankId, value1, value2);
        }

        public MoPassagewayCardsupportExample.Criteria andBankIdNotBetween(Long value1, Long value2) {
            return notBetween(bankId, value1, value2);
        }
        public MoPassagewayCardsupportExample.Criteria andCpIdIsNull() {
            return isNull(cpId);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdIsNotNull() {
            return isNotNull(cpId);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdEqualTo(Long value) {
            return equalTo(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdNotEqualTo(Long value) {
            return notEqualTo(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdGreaterThan(Long value) {
            return greaterThan(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdLessThan(Long value) {
            return lessThan(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(cpId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdIn(List<Long> values) {
            return in(cpId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdNotIn(List<Long> values) {
            return notIn(cpId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdBetween(Long value1, Long value2) {
            return between(cpId, value1, value2);
        }

        public MoPassagewayCardsupportExample.Criteria andCpIdNotBetween(Long value1, Long value2) {
            return notBetween(cpId, value1, value2);
        }
        public MoPassagewayCardsupportExample.Criteria andPassagewayIdIsNull() {
            return isNull(passagewayId);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdIsNotNull() {
            return isNotNull(passagewayId);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdEqualTo(Long value) {
            return equalTo(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdNotEqualTo(Long value) {
            return notEqualTo(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdGreaterThan(Long value) {
            return greaterThan(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdLessThan(Long value) {
            return lessThan(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(passagewayId, value);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdIn(List<Long> values) {
            return in(passagewayId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdNotIn(List<Long> values) {
            return notIn(passagewayId, values);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdBetween(Long value1, Long value2) {
            return between(passagewayId, value1, value2);
        }

        public MoPassagewayCardsupportExample.Criteria andPassagewayIdNotBetween(Long value1, Long value2) {
            return notBetween(passagewayId, value1, value2);
        }
    }
}